import index from "./component/index.vue";
import late from "./component/late.vue";
import miss from "./component/miss.vue";
import out from "./component/goOut.vue";
import page404 from "./component/_page404.vue"
import zero from "./component/_zero.vue"
import freeTime from "./component/freeTime.vue"

Vue.use(VueRouter);
const routes = [{
        path: "/index",
        component: index
    },
    {
        path: "/miss",
        component: miss
    },
    {
        path: "/out",
        component: out
    },
    {
        path: "/late",
        component: late
    },
    {
        path: '/',
        redirect: '/all'
    },
    {
        path: '/free',
        component: freeTime
    },
    {
        path: '/zero',
        component: zero
    },
    {
        path: '*',
        component: page404
    }
]
var router = new VueRouter({
    // mode: 'history',
    routes
});
// 实例化vue



import AttendanceRoot from "./A_Root.vue";
var app = new Vue({
    el: '#app',
    template: '<AttendanceRoot/>',
    router,
    components: { AttendanceRoot },
})